package programs.expression.implementedClasses;

import programs.expression.superClasses.BasicExpression;
import programs.expression.superClasses.ExpressionType;

public class BasicBoolean extends BasicExpression {

	public BasicBoolean(Object value) 
	{
		super(value);
	}
	@Override
	public ExpressionType getReturnType() {
		return ExpressionType.BOOLEAN;
	}

	@Override
	public boolean isValidExpression() {
		return (getValue() instanceof Boolean);
	}
	@Override
	public BasicBoolean assignGlobalVariable(Variable variable) {
		return this;
	}

}
